//
//  FucSelectViewController.m
//  乐清
//
//  Created by mac on 16/5/5.
//  Copyright © 2016年 Simon. All rights reserved.
//

#import "FucSelectViewController.h"
#import "FucSelectView.h"

@interface FucSelectViewController ()

@end

@implementation FucSelectViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
}

- (void)viewWillAppear:(BOOL)animated {
    
    [super viewWillAppear:animated];
    
    self.navigationController.navigationBarHidden = YES;
}

- (void)setViewCtype:(NSInteger)viewCtype {
    
    _viewCtype = viewCtype;
    
    [self _createFucSelectView];
}

- (void)_createFucSelectView {
    
    FucSelectView *selectView = [[FucSelectView alloc] initWithFrame:self.view.frame];
    selectView.viewType = _viewCtype;
    [self.view addSubview:selectView];
}

- (void)viewWillDisappear:(BOOL)animated {
    
    [super viewWillDisappear:animated];
    
    self.navigationController.navigationBarHidden = NO;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
